package net.esj.basic.dao.ann.criterion.condition.expression;

import net.esj.basic.dao.ann.SqlHelper;
import net.esj.basic.dao.ann.criterion.Criterion;
import net.esj.basic.dao.ann.criterion.condition.Condition;

public abstract class Expression implements Condition{

	protected Criterion left;
	
	protected Criterion right;
	
	public Expression(Criterion left, Criterion right) {
		super();
		this.left = left;
		this.right = right;
	}
	
	public abstract String getExpressionString();
	
	@Override
	public String toSql() {
		return left.toSql()+getExpressionString()+right.toSql();
	}
	
}
